package com.hawthorn.admin.feign;

import com.hawthorn.platform.config.FeignConfig;
import com.hawthorn.platform.ret.RestResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.FeignFallback;
import org.springframework.cloud.openfeign.HystrixFallbackFactory;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @copyright: Copyright (c) 2020 andyten
 * <p></p>
 * @remark: feign接口服务
 * @author: andyten@tom.com | xukaixing@hotmail.com
 * @date: 2020/10/28 7:42 下午
 * @version v1.0.1
 */
@FeignClient(name = "hawthorn-claim", path = "/claimhello", configuration = FeignConfig.class, fallbackFactory = HystrixFallbackFactory.class)
public interface HelloFeignService extends FeignFallback
{
  @GetMapping(value = "/sayClaimHello")
  RestResult sayHello();
}
